﻿
@if (Request.IsAuthenticated) {
    <text>
        <a class ="username" title="Manage" style="margin-top:10px; font-size: medium; color: white;" href="@Url.Action("Manage", "Account")">Hello, @User.Identity.Name !</a> @*@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage", style = "font-size: medium; color: white;" })!*@
        <div style="float:right;">
            @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
            {
                @Html.AntiForgeryToken()
                <a style="float:right; margin-right:30px;" href="javascript:document.getElementById('logoutForm').submit()"><img title="Log Out" src="~/pictures/logout.png" width="20" height="20" /></a>
            }
        </div>
    </text>
}
else
{
    <ul class="dropdown-menu">
        <li class="Register">@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
        <li class="Register">@Html.ActionLink("LogIn", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
